<?php
include 'util/autenticacion.php'; 

$tituloSistema = "Administraci&oacute;n de Ventas";
$tituloPagina = "Log On de Usuarios";

$formName = "LogonUser";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><?php echo $tituloPagina;?></title>
<link href="Content/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page">
	<?php require_once('util/header.php'); ?>
	
	<div id="main">
		<h2><?php echo $tituloPagina;?></h2>
		<form action="" method="POST" id="<?php echo $formName;?>">
		<fieldset>
			<?php echo $errorLogon;?>
			<legend>Informaci&oacute;n de la Cuenta</legend>
			<div class="editor-label"><label for="UserName">Nombre de usuario</label></div>
			<div class="editor-field"><input id="UserName" type="text" value="" name="UserName" placeholder="ingrese su nombre de usuario"></div>
			<div class="editor-label"><label for="Password">Clave</label></div>
			<div class="editor-field"><input id="Password" type="password" name="Password" placeholder="ingrese su contrase&ntilde;a"></div>
			<p><input type="submit" value="&nbsp;" name="login" class="botonlogin" /></p>
		</fieldset>
		</form>
	</div>
	
	<?php require_once('util/piepagina.php'); ?>
</div>

<script>
  var theForm = document.getElementById('<?php echo $formName;?>');
	theForm.UserName.focus();
</script>  

</body>
</html>